import { MenuItem } from "@/scripts/dataTypes";
import { defineAsyncComponent, ref, shallowRef } from "vue";
import addTree from "@/pages/forestView/AddTree.vue";
import editTree from "@/pages/forestView/EditTree.vue";
import selectTree from "@/pages/forestView/SelectTree.vue";


export const forestMenuList = ref<MenuItem[]>([
    {
        id: "addTree",
        name: "添加树",
        com: shallowRef(addTree),
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/batch.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/cimrts/baseInfo/batch_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/batch_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "editTree",
        name: "拾取树",
        com: shallowRef(editTree),
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/edit.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/cimrts/baseInfo/edit_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/edit_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "selectTree",
        name: "框选",
        com: shallowRef(selectTree),
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/select.png', import.meta.url).href,
        activeIcon: new URL('../../../assets/cimrts/baseInfo/select_actived.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/select_hover.png', import.meta.url).href,
        isOnly: true,
    },
    {
        id: "location",
        name: "定位",
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/location.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/location_hover.png', import.meta.url).href,
    },
    {
        id: "flyToTree",
        name: "飞行至随机树",
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/flyToFeature.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/flyToFeature_hover.png', import.meta.url).href,
    },
    {
        id: "refresh",
        name: "刷新",
        status: "none",
        icon: new URL('../../../assets/cimrts/baseInfo/refresh.png', import.meta.url).href,
        hoverIcon: new URL('../../../assets/cimrts/baseInfo/refresh_hover.png', import.meta.url).href,
    },
])